#define _CRT_SECURE_NO_WARNINGS 1
#include "stack.h"

void text1()
{
	Stack st;
	StackInit(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);

	StackPush(&st, 5);
	StackPush(&st, 5);
	StackPush(&st, 5);
	StackPush(&st, 5);
	StackPush(&st, 5);


	int size = StackSize(&st);
	for (int i = 0; i < size; i++)
	{
		printf("%d ", StackTop(&st));
		StackPop(&st);
	}

	StackDestroy(&st);
}
int main()
{
	text1();
	return 0;
}